package cn.tedu.boot09.mapper;

import cn.tedu.boot09.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {


    int insert(Product product);
    List<Product> select();
    int deleteById(int id);
    int update(Product product);
    Product selectById(int id);
    int count();
    //第一种批量删除
    int deleteByIds1(Integer[] ids);

    //第二种批量删除
    int deleteByIds2(List<Integer> ids);
    //第三种批量删除
    int deleteByIds3(Integer... ids);

    //动态修改
    int dynamicUpdate(Product product);



}
